package com.mojo.io.stream;

import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;

/**
 * 随机访问流
 *
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 */
public class RandomAccessFile01 {
    public static void main(String[] args) throws IOException {
        RandomAccessFile file = new RandomAccessFile(new File("D://test.txt"), "r");
        System.out.println(file.skipBytes(3));
        System.out.println((char) file.read());
        file.close();
    }
}
